#include <iostream>
#include <cstring>
#include <cstdio>
#include <math.h>
using namespace std;

int main(){
	int t,l;
	int i=0,j=0;
	int n;
	cin>>n;
	while(n<1000){
	while(n==1){
		if(n%2==0){
			n=n/2;
			 i++;
		}
		if(n%2!=0){
			n=(3*n+1)/2;
			 j++;
		}
	}
	}
}
